package com.loadmore.baselibrary.util.ui;

import android.content.res.ColorStateList;

/**
 * Created by sunleilei on 2017/4/23.
 */

public class ColorUtil {
    public static ColorStateList getStateColor(int normal,int selected) {
        int[][] state = new int[3][];
        state[0] = new int[]{};
        state[1] = new int[]{android.R.attr.checked};
        state[2] = new int[]{android.R.attr.state_pressed};
        return new ColorStateList(state,new int[]{normal,normal,selected});
    }
}
